home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950528-19950726 / 000014_news@columbia.edu_Thu Jun 1 01:03:54 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA18309
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 31 May 1995 18:17:23 -0400
  3. Received: by apakabar.cc.columbia.edu id AA26327
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 31 May 1995 18:17:21 -0400
  5. Path: news.columbia.edu!panix!news.mathworks.com!gatech!newsxfer.itd.umich.edu!gumby!mickey.acs.wmich.edu!tucker
  6. From: "John D. Tucker" <tucker@mickey.acs.wmich.edu>
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Piping output from "rem host" command
  9. Date: Wed, 31 May 1995 16:03:54 -0900
  10. Organization: Western Michigan University
  11. Lines: 27
  12. Message-Id: <Pine.PCP.3.91.950531154729.6366A-100000-100000-100000@[141.218.24.34]>
  13. Nntp-Posting-Host: moggie.acs.wmich.edu
  14. Mime-Version: 1.0
  15. Content-Type: TEXT/PLAIN; charset=US-ASCII
  16. X-Sender: tucker@gumby.cc.wmich.edu
  17. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  18.  
  19.  
  20.  
  21. I would like to send a command to a remote computer and capture a brief 
  22. (one line of characters) response from that computer for processing 
  23. within a script.  Reading the "Using MS-DOS Kermit" manual, I found that 
  24.                rem host [command] > d:\log\remote.out
  25. would capture the output from "[command]" in the file "d:\log\remote.out".
  26. However, when using the pipe symbol (instead of the redirection symbol), 
  27. the symbol gets sent to the remote host rather than piping the output to 
  28. some program.
  29.  
  30. Any suggestions how I could get the response from the remote computer 
  31. into a Kermit script variable, piped to a DOS command/executable, or 
  32. otherwise made available WITHOUT the intermediate step of writing to a file?
  33. Even dumping the entire contents of the communications buffer would work 
  34. as I could probably filter out what I want.
  35.  
  36. Thank you.
  37.  
  38. John D. Tucker                       Phone: (616) 387-5448
  39. Systems Programmer                Internet: john.tucker@wmich.edu
  40. University Computing Services    Ham Radio: WB8ZVV/AA
  41. Western Michigan University     ICBM Addr.: 42 17 30 N 85 35 14 W
  42. Kalamazoo, Michigan USA 49008  Audio Addr.: "Hey Tucker!"
  43.  
  44.  
  45.